package com.cheney.weiboo.utils;

import android.content.Context;

import com.cheney.weiboo.db.DBHelper;
//DBFactory，创建DB
public class DBFactory {

	public static DBHelper dbHelper;
	private static Object INSTANCE_LOCK = new Object();
	
	public static DBHelper getInstance(Context context,String dbName){
		synchronized(INSTANCE_LOCK){
			if(dbHelper==null){
				dbHelper = new DBHelper(context,dbName);
			}
		}
		return dbHelper;
	}
	
}
